<?php
/**
 * 动态加载类文件
 * @param string $classname
 */
function __autoload($classname) {
	if (preg_match('/\w*ModelClass$/', $classname)) {
		include("model/" . $classname . ".php");
	} elseif (preg_match('/\w*ControlClass$/', $classname)) {
		include("control/" . $classname . ".php");
	} elseif (preg_match('/\w*ConfigClass$/', $classname)) {
		include("configs/" . $classname . ".php");
	} elseif (preg_match('/\w*ExceptionClass$/', $classname)) {
		include("exception/" . $classname . ".php");
	} else {
		include("include/class/" . $classname . ".php");
	}
}